package com.faxsun.common.currency.dao;

import java.util.List;

import org.broadleafcommerce.common.currency.domain.BroadleafCurrency;

import com.faxsun.common.currency.domain.FSCurrencyRate;

public interface FSCurrencyRateDao {

	public List<FSCurrencyRate> readBySourceCode(BroadleafCurrency code);
	
	public List<FSCurrencyRate> readByDestinationCode(BroadleafCurrency code);
	
	public FSCurrencyRate readByCodes(BroadleafCurrency source,BroadleafCurrency destination);
	
	public FSCurrencyRate save(FSCurrencyRate currencyRate);
	
	public FSCurrencyRate create();
	
	public FSCurrencyRate update(FSCurrencyRate currencyRate);
	
}
